package com.casualgamers.proj1;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;


public class MainMenu extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mainmenu);
        
        initialize();

    }
    
    private void initialize() {
		// Initialize Interface Objects
    	Button newGameButton = (Button) findViewById(R.id.MainMenuNewGameButton);
    	Button continueButton = (Button) findViewById(R.id.MainMenuContinueButton);
    	Button instButton = (Button) findViewById(R.id.MainMenuInstButton);
    	Button optionsButton = (Button) findViewById(R.id.MainMenuOptionsButton);
    	Button exitButton = (Button) findViewById(R.id.MainMenuExitButton);
        
    	// Set listeners
    	newGameButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {
        		//TODO
        		Log.v("DEBUG", "raise: NOT IMPLEMENTED YET");
        		assert(false);
        	}
        });
    	continueButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {
        		//TODO
        		Log.v("DEBUG", "raise: NOT IMPLEMENTED YET");
        		assert(false);
        	}
        });
    	instButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {
        		Intent myIntent = new Intent(((Context) MainMenu.this), InstructionsMenu.class);
				((Context) MainMenu.this).startActivity(myIntent);
        	}
        });
    	optionsButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {
        		Intent myIntent = new Intent(((Context) MainMenu.this), OptionsMenu.class);
				((Context) MainMenu.this).startActivity(myIntent);
        	}
        });
    	exitButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {
        		//TODO
        		Log.v("DEBUG", "raise: NOT IMPLEMENTED YET");
        		assert(false);
        	}
        });
	}
}